]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Make app D-Bus-activatable
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 8 Mar 2020 21:38:47 +0000 (22:38 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 19 Mar 2020 14:27:36 +0000 (14:27 +0000)
This is the preferred way of launching applications nowadays.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1081

js/extensionPrefs/data/meson.build
js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in
js/extensionPrefs/data/org.gnome.Extensions.service.in [new file with mode: 0644]

index 1a4b77ed87b08d8d6c70c381f6310509c710764d..c805ab62e63a38e72de9ae31966e0a092c1dda18 100644 (file)
@@ -26,5 +26,13 @@ i18n.merge_file('desktop',
   type: 'desktop'
 )
 
+configure_file(
+  input: app_id + '.service.in',
+  output: app_id + '.service',
+  configuration: desktopconf,
+  install: true,
+  install_dir: servicedir,
+)
+
 subdir('icons')
 subdir('metainfo')
index 2806c795e6398d0a3e2a26a3425e2a2125e510b8..cd22f6adf03bd087e47e8881b3708765b673c812 100644 (file)
@@ -5,5 +5,6 @@ Name=Extensions
 Icon=@app_id@
 Comment=Configure GNOME Shell Extensions
 Exec=@bindir@/@prgname@ %u
+DBusActivatable=true
 Categories=GNOME;GTK;
 OnlyShowIn=GNOME;
diff --git a/js/extensionPrefs/data/org.gnome.Extensions.service.in b/js/extensionPrefs/data/org.gnome.Extensions.service.in
new file mode 100644 (file)
index 0000000..2150999
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=@app_id@
+Exec=@bindir@/@prgname@